
//
//  DemoViewController.swift
//  新浪微博
//
//  Created by yaozhen on 2017/11/29.
//  Copyright © 2017年 ZYZ. All rights reserved.
//

import UIKit

class DemoViewController: BaseViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.cz_random()
        //设置标题 
            
        navIem.title = "第\(navigationController?.childViewControllers.count ?? 0)个"
        settingNavigation()
    }
    @objc private func showNext(){
        let vc = DemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}
extension DemoViewController
{
    private func settingNavigation(){
        navIem.rightBarButtonItem = UIBarButtonItem.init(title: "好友", fontSize: 16, target: self, action: #selector(showNext))
    }
}
